//priority 10000
const playerHelper = {
    /**@returns {Internal.Player}*/
    getPlayerByUUID(UUID) {
        var players = Utils.server.players
        for (const index in players) {
            if (players[index].uuid.compareTo(UUID) == 0) {
                return players[index]
            }
        }
        return null
    },
        /**@returns {Internal.Player}*/
        getPlayerByName(name) {
            var players = Utils.server.players
            for (const index in players) {
                if (players[index].username == name) {
                    return players[index]
                }
            }
            return null
        },
    /**@param {Internal.Player} Player*/
    getTotalLuck(Player) {
        return Player.mainHandItem.getEnchantmentLevel("minecraft:looting") * 5 + Player.mainHandItem.getEnchantmentLevel("minecraft:fortune") * 5 + Player.getAttributeValue("eou:generic.luck")
    }
}